package com.oxchinx.order.exception;

import com.oxchinx.order.model.enums.ResultEnum;

/**
 * Created by dell on 2018/5/23.
 */
public class OrderException extends RuntimeException {
    private Integer code;

    public OrderException(Integer code, String desc) {
        super(desc);
        this.code = code;
    }

    public OrderException(ResultEnum resultEnum) {
        super(resultEnum.getDesc());
        this.code = resultEnum.getCode();
    }
}
